package stc.skymobi.transport.protocol.esb.hdr;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import stc.skymobi.bean.esb.annotation.EsbField;

/**
 * 用户头像和昵称
 * flag = 5
 * @author Bluces.Wang@sky-mobi.com
 *
 */
public class ETFTerminalUserProfileInfo {
	@EsbField(index = 1)
	private short portraitId;

	@EsbField(index = 2, bytes = 1)
	private int nicknameLen;

	@EsbField(index = 3, length = "nicknameLen", charset = "UTF-16BE")
	private String nickname;

	public short getPortraitId() {
		return portraitId;
	}

	public void setPortraitId(short portraitId) {
		this.portraitId = portraitId;
	}

	public int getNicknameLen() {
		return nicknameLen;
	}

	public void setNicknameLen(int nicknameLen) {
		this.nicknameLen = nicknameLen;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	
    public String toString() {
        
        return  ToStringBuilder.reflectionToString(this, 
                            ToStringStyle.SHORT_PREFIX_STYLE);
    }
}
